package com.lizhi.yun.base;/**
 * @program: spring-boot
 * @name BaseController
 * @description: 分页查询
 * @author: lizhi
 * @create: 2020-04-11 16:01
 */

import com.lizhi.mybatis.page.Pager;

import java.util.Map;

/**
 *@program: spring-boot
 *@name BaseController
 *@description: 分页查询
 *@author: lizhi
 *@create: 2020-04-11 16:01
 */
public class BaseController {

    @SuppressWarnings("rawtypes")
    public Pager getPager(Map map){
        Pager pager = new Pager();
        pager.setPageIndex((int) map.get("pageIndex"));
        pager.setPageSize( (int) map.get("pageSize"));
        return pager;
    }
}
